package com.groupseven.happycampus.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommodityOrder {
    /**
     * 订单表	order		 ：
     * id 	order_Id(订单编号)
     * order_time(下单时间)
     * commodity_name购买商品名称
     * number（购买数量）
     * id(上架商品id)
     * total_price(总价格)
     */
    private Integer id;
    private String orderId;
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    private String commodityName;
    private Integer number;
    private Integer commodityId;
    private Integer totalPrice;
}
